using System;

namespace GameCore
{
    public abstract class Item : ManagedPrefab
    {
        public ItemData itemData { get; protected set; }
        public abstract void OnClick();
        public override void ResetData() => itemData = new ItemData(resourceID);
        public override void SetData(GameData data) => itemData = data as ItemData;
        public override GameData GetData() => itemData;
        public virtual void Select() { }
        public virtual void Deselect() { }
    }
}